package com.hhxy.utils;

import com.hhxy.Enum.HttpCode;

public class ResponseUtil {

    public static Response success(HttpCode httpCode){
        return new Response(httpCode);
    }

    public static <T>Response success(HttpCode httpCode,T t){
        return new Response<>(httpCode,t);
    }

    public static Response error(HttpCode httpCode,String msg){
        return new Response<>(httpCode,msg);
    }

}
